//!@author denglibin
//!@date 2025/6/10 9:32
//!@desc 动态数据导入

use sqlx::MySqlPool;
use crate::dao::mysql::mysql_dao;
use crate::entity::dong_tai::{DongTai, DongTai2};
use crate::sys::global::GlobalResult;

///导入
pub async fn insert_batch(pool: &MySqlPool, datas: &Vec<DongTai>) ->GlobalResult<()> {
    mysql_dao::insert_batch(datas, pool).await
}

pub async fn insert_batch2(pool: &MySqlPool, datas: &Vec<DongTai2>) ->GlobalResult<()> {
    mysql_dao::insert_batch(datas, pool).await
}